using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Spinning.Spinning.Interface;

namespace Spinning.Spinning.EntityModifiers
{
   abstract class SingleValueModifier : EntityModifier
    {
       protected float _from, _to;

       public SingleValueModifier(int startTime, int endTime, float from, float to)
           : base(startTime, endTime)
      {
          _from = from;
          _to = to;
          OnStart += onStart;
          OnFinish += onFinish;
      }

      protected abstract void onStart(IEntity item, EntityModifier modifier);

      protected abstract void onFinish(IEntity item, EntityModifier modifier);
    }
}
